package com.czr.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czr.dao.entity.CzrColumn;
import com.czr.dao.entity.CzrNews;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 新闻资讯 Mapper 接口
 * </p>
 *
 */
@Mapper
public interface CzrNewsMapper extends BaseMapper<CzrNews> {
    Map<String,Object> getTitle(@Param("title") String title);

    Map<String,Object> getViews(@Param("newsId") Long newsId);

    List<Map<String,Object>> getNewsInfoByNewsId(@Param("columnId") Integer columnId);
}
